package xyz.zdsoft.attendance_manage_module.pojo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;

/**
 * @author 王林
 * @version 1.0
 * @date 2021-07-24 周六
 * @time 10:26
 * @description
 */
@Data
@ToString
@ApiModel("分页类")
public class MyPage {

    @ApiModelProperty(value = "分页页码", required = false)
    private Integer pageNumber = 1;

    @ApiModelProperty(value = "分页大小", required = false)
    private Integer pageSize = 10;

    public void setPageNumber(Integer pageNumber) {
        if (pageNumber != null) {
            this.pageNumber = pageNumber;
        }
    }

    public void setPageSize(Integer pageSize) {
        if (pageSize != null) {
            this.pageSize = pageSize;
        }
    }
}